import Layout from '@/views/layout/Layout'

export const commonMap = [
  { path: '/login', component: () => import('@/views/login/index'), hidden: true },
  { path: '/404', component: () => import('@/views/404'), hidden: true },
  {path: '/third',component: () => import('@/views/login/third'),hidden: true},
  {path: '/callback', component: () => import('@/views/login/callback'), hidden: true},
  {
    path: '',
    component: Layout,
    redirect: '/home',
    meta: { title: '首页', icon: 'home' },
    children: [{
      path: 'home',
      name: 'home',
      component: () => import('@/views/home/index'),
      meta: { title: '仪表盘', icon: 'dashboard' }
    },
    {
      name: 'document',
      path: 'https://www.macrozheng.com',
      meta: { title: '学习教程', icon: 'document' }
    },
    {
      name: 'video',
      path: 'https://www.macrozheng.com/mall/catalog/mall_video.html',
      meta: { title: '视频教程', icon: 'video' }
    }]
  }
]